/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/03/28
\**********************/
#include "FloatBtn.h"
#include "../App.h"

FloatBtn::FloatBtn(LPCTSTR name) : SDWindow(name)
{}

FloatBtn::~FloatBtn(void)
{
    App::ReleaseFloatBtn();
}

//SDWindow::
CControlUI* FloatBtn::OnCreateControl(LPCTSTR pstrClass)
{
    if ( _tcsicmp(pstrClass, _T("SDFloatButton")) == 0 ) {
        return new CControlUI;
    }
    return 0;
}

//SDWindow::
void FloatBtn::OnCreate()
{
    BuildWindow(_T("WndFloatBtn.xml"));
}
